#!/usr/bin/python3
L = ['tarena','xiaozhang','xiaowang']
d =  {x:len(x) for x in L}
# Nos = [1001,1002,1003,1004]
# names = ['Tom','Jerry','Spike','Tyke']
# 得到如下结果{1001:'Tom','1002':'Jerry'...}
Nos = [1001,1002,1003,1004]
names = ['Tom','Jerry','Spike','Tyke']
d = {Nos[i]:names[i] for i in range(len(Nos))}
print(d)